package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_cricket_draw_level", desc = "蛐蛐绘卷日志", autoSave = true, uploadCk = true)
public class LogCricketDrawLevel extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "获得/消耗碎片数量")
    private long beforeNum;


    @FieldTypeAnnotation(desc = "获得的碎片")
    private long addNum;

    @FieldTypeAnnotation(desc = "升级消耗的碎片")
    private long costNum;

    @FieldTypeAnnotation(desc = "获得/消耗后碎片数量")
    private long afterNum;

    @FieldTypeAnnotation(desc = "升级前绘卷等级")
    private int beforeLevel;

    @FieldTypeAnnotation(desc = "升级后绘卷等级")
    private int afterLevel;

    @FieldTypeAnnotation(desc = "途径")
    private int master;

    @FieldTypeAnnotation(desc = "途径")
    private int son;

    public LogCricketDrawLevel(long userId, long beforeNum, long addNum, long costNum, long afterNum, int beforeLevel, int afterLevel, int master, int son) {
        this.userId = userId;
        this.beforeNum = beforeNum;
        this.addNum = addNum;
        this.costNum = costNum;
        this.afterNum = afterNum;
        this.beforeLevel = beforeLevel;
        this.afterLevel = afterLevel;
        this.master = master;
        this.son = son;
    }

    public long getUserId() {
        return userId;
    }

}
